<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
//String uri = (String)session.getAttribute("uri");

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE HTML>
<html>
  <head>
    
    <title>价值报表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    	
	<meta http-equiv="description" content="This is my page">
	
	 <link href="<%=basePath %>/background/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>/background/css/header.css" rel="stylesheet" type="text/css" />
	
  </head>
  
  <body>
  
  <div id="container">
  <div id="header">
		 <jsp:include page="/background/head.jsp"></jsp:include>
	</div>
  <div id="applicationbar">
		 <jsp:include page="/background/application/applicationbar.jsp"></jsp:include>
	</div>
  <div id="mainContent">
    <div id="sidebar">

		<jsp:include page="/background/left.jsp"></jsp:include>
	</div>
	
	
	
    <div id="content" >
    <div style="border:1px solid #ffffff; border-top-color:#6cb1f1; background-color: #e5f3ff; width: 100%; top: 0px;" >
							价值报表
		<input type="button" value="查看谁有权限" 
     			onclick="javascript:openUrlForDialog('selectuserlimited_warehouse.action?limitedCode=<s:property value="limitedcode"/>')"/>	
	</div>
	
	<label>
		<s:fielderror id="errormessage" />
		库存价值:<s:property value="warehouseCost"/>
	</label>
    
   
    <table style="border: 1px;">
    	<tr>
    		<td>
    			月份
    		</td>
    		
    		<td>
    			销售额
    		</td>
    		
    		<td>
    			利润
    		</td>
    		<td>
    			单数
    		</td>
    		
    		<td>
    			平均单数利润
    		</td>
    		
    		<td>
    			进货额
    		</td>
    		
    		
    	</tr>
    	<s:iterator  value="sumPorfitMap" id="sumPorfitMap">
    	<tr>
    	
    		
    		<td>
    			<s:property value="key"/>
    		
    		</td>
    		<td>
    			<s:property value="salesAmountMap.get(key)"/>
    		
    		</td>
    		<td>
    		<s:property value="value"/>
    		</td>
    		<td>
    			
    			<s:property value="countNumMap.get(key)"/>
    		</td>
    		
    		<td>
    			
    			<s:property value="avgPorfitMap.get(key)"/>
    		</td>
    		
    		<td>
    			<s:property value="purchaselistTotalMap.get(key)"/>
    		
    		</td>
    		
    		
    	</tr>
    </s:iterator>
    </table>

 
	
	
	
	
    
    
	
	
	
	</div>
  </div>
  <div id="footer">
<jsp:include page="/background/tail.jsp"></jsp:include>
	</div>
</div>
  




  </body>

</html>
